package com.hzy.oms.service;

import com.hzy.oms.domain.OrderDeliveryHistory;
import com.hzy.oms.domain.vo.OrderDeliveryHistoryVo;
import com.hzy.oms.domain.bo.OrderDeliveryHistoryBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 订单发货记录Service接口
 *
 * @author zengxin
 * @date 2023-10-18
 */
public interface IOrderDeliveryHistoryService {

    /**
     * 查询订单发货记录
     */
    OrderDeliveryHistoryVo queryById(Long id);

    /**
     * 查询订单发货记录列表
     */
    TableDataInfo<OrderDeliveryHistoryVo> queryPageList(OrderDeliveryHistoryBo bo, PageQuery pageQuery);

    /**
     * 查询订单发货记录列表
     */
    List<OrderDeliveryHistoryVo> queryList(OrderDeliveryHistoryBo bo);

    /**
     * 新增订单发货记录
     */
    Boolean insertByBo(OrderDeliveryHistoryBo bo);

    /**
     * 修改订单发货记录
     */
    Boolean updateByBo(OrderDeliveryHistoryBo bo);

    /**
     * 校验并批量删除订单发货记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
